package org.example.order.service.impl;

import org.example.order.bo.OrderSettingBO;
import org.example.order.dao.OrderSettingDao;
import org.example.order.vo.OrderSettingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.example.order.service.OrderSettingService;


@Service("orderSettingService")
public class OrderSettingServiceImpl implements OrderSettingService {

    @Autowired
    private OrderSettingDao orderSettingDao;

    @Override
    public OrderSettingVo detail() {
        // 默认查询id为1的只有1个
        return orderSettingDao.detail(1L);
    }

    @Override
    public void update(OrderSettingBO orderSettingBO) {
        orderSettingDao.update(orderSettingBO);
    }
}